//
//  PLSimpleChatController.h
//  Plankton
//
//  Created by Marc Schlichte on 19.07.08.
//  Copyright 2008 Framework Labs. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "PLDirectory.h"

@class PLPlatform, PLPattern;
@class PLSimpleChatRoom;

@interface PLSimpleChatController : NSObject <PLDirectoryDelegate>
{
    PLPlatform          *platform;
    PLDirectory         *directory;
    
    NSString            *ownAid;
    NSString            *nickname;
    NSString            *receivedText;
    NSString            *sendText;
    PLPattern           *receivePattern;
    
    NSMutableSet        *chatRooms;
    PLSimpleChatRoom    *ownChatRoom;
    
    NSString            *currentChatRoom;
    IBOutlet NSArrayController  *chatRoomController;
    IBOutlet NSTextView         *textView;
}

@property(copy) NSString        *ownAid;
@property(copy) NSString        *nickname;
@property(copy) NSMutableSet    *chatRooms;
@property(copy) NSString        *receivedText;
@property(copy) NSString        *sendText;

@property(copy) NSString        *currentChatRoom;
@property(readonly) BOOL        hasChatRoom;

- (IBAction)send:(id)sender;

@end
